﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020002B7 RID: 695
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ChessRogueStartCsReq : IMessage<ChessRogueStartCsReq>, IMessage, IEquatable<ChessRogueStartCsReq>, IDeepCloneable<ChessRogueStartCsReq>, IBufferMessage
	{
		// Token: 0x17000906 RID: 2310
		// (get) Token: 0x06001F1F RID: 7967 RVA: 0x000586EF File Offset: 0x000568EF
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ChessRogueStartCsReq> Parser
		{
			get
			{
				return ChessRogueStartCsReq._parser;
			}
		}

		// Token: 0x17000907 RID: 2311
		// (get) Token: 0x06001F20 RID: 7968 RVA: 0x000586F6 File Offset: 0x000568F6
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ChessRogueStartCsReqReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x17000908 RID: 2312
		// (get) Token: 0x06001F21 RID: 7969 RVA: 0x00058708 File Offset: 0x00056908
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ChessRogueStartCsReq.Descriptor;
			}
		}

		// Token: 0x06001F22 RID: 7970 RVA: 0x0005870F File Offset: 0x0005690F
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueStartCsReq()
		{
		}

		// Token: 0x06001F23 RID: 7971 RVA: 0x00058744 File Offset: 0x00056944
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueStartCsReq(ChessRogueStartCsReq other) : this()
		{
			this.baseAvatarIdList_ = other.baseAvatarIdList_.Clone();
			this.trialAvatarIdList_ = other.trialAvatarIdList_.Clone();
			this.branchId_ = other.branchId_;
			this.disableAeonIdList_ = other.disableAeonIdList_.Clone();
			this.startDifficultyIdList_ = other.startDifficultyIdList_.Clone();
			this.aeonId_ = other.aeonId_;
			this.id_ = other.id_;
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x06001F24 RID: 7972 RVA: 0x000587D0 File Offset: 0x000569D0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ChessRogueStartCsReq Clone()
		{
			return new ChessRogueStartCsReq(this);
		}

		// Token: 0x17000909 RID: 2313
		// (get) Token: 0x06001F25 RID: 7973 RVA: 0x000587D8 File Offset: 0x000569D8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> BaseAvatarIdList
		{
			get
			{
				return this.baseAvatarIdList_;
			}
		}

		// Token: 0x1700090A RID: 2314
		// (get) Token: 0x06001F26 RID: 7974 RVA: 0x000587E0 File Offset: 0x000569E0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> TrialAvatarIdList
		{
			get
			{
				return this.trialAvatarIdList_;
			}
		}

		// Token: 0x1700090B RID: 2315
		// (get) Token: 0x06001F27 RID: 7975 RVA: 0x000587E8 File Offset: 0x000569E8
		// (set) Token: 0x06001F28 RID: 7976 RVA: 0x000587F0 File Offset: 0x000569F0
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint BranchId
		{
			get
			{
				return this.branchId_;
			}
			set
			{
				this.branchId_ = value;
			}
		}

		// Token: 0x1700090C RID: 2316
		// (get) Token: 0x06001F29 RID: 7977 RVA: 0x000587F9 File Offset: 0x000569F9
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> DisableAeonIdList
		{
			get
			{
				return this.disableAeonIdList_;
			}
		}

		// Token: 0x1700090D RID: 2317
		// (get) Token: 0x06001F2A RID: 7978 RVA: 0x00058801 File Offset: 0x00056A01
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<uint> StartDifficultyIdList
		{
			get
			{
				return this.startDifficultyIdList_;
			}
		}

		// Token: 0x1700090E RID: 2318
		// (get) Token: 0x06001F2B RID: 7979 RVA: 0x00058809 File Offset: 0x00056A09
		// (set) Token: 0x06001F2C RID: 7980 RVA: 0x00058811 File Offset: 0x00056A11
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint AeonId
		{
			get
			{
				return this.aeonId_;
			}
			set
			{
				this.aeonId_ = value;
			}
		}

		// Token: 0x1700090F RID: 2319
		// (get) Token: 0x06001F2D RID: 7981 RVA: 0x0005881A File Offset: 0x00056A1A
		// (set) Token: 0x06001F2E RID: 7982 RVA: 0x00058822 File Offset: 0x00056A22
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint Id
		{
			get
			{
				return this.id_;
			}
			set
			{
				this.id_ = value;
			}
		}

		// Token: 0x06001F2F RID: 7983 RVA: 0x0005882B File Offset: 0x00056A2B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ChessRogueStartCsReq);
		}

		// Token: 0x06001F30 RID: 7984 RVA: 0x0005883C File Offset: 0x00056A3C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ChessRogueStartCsReq other)
		{
			return other != null && (other == this || (this.baseAvatarIdList_.Equals(other.baseAvatarIdList_) && this.trialAvatarIdList_.Equals(other.trialAvatarIdList_) && this.BranchId == other.BranchId && this.disableAeonIdList_.Equals(other.disableAeonIdList_) && this.startDifficultyIdList_.Equals(other.startDifficultyIdList_) && this.AeonId == other.AeonId && this.Id == other.Id && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x06001F31 RID: 7985 RVA: 0x000588EC File Offset: 0x00056AEC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			num ^= this.baseAvatarIdList_.GetHashCode();
			num ^= this.trialAvatarIdList_.GetHashCode();
			if (this.BranchId != 0U)
			{
				num ^= this.BranchId.GetHashCode();
			}
			num ^= this.disableAeonIdList_.GetHashCode();
			num ^= this.startDifficultyIdList_.GetHashCode();
			if (this.AeonId != 0U)
			{
				num ^= this.AeonId.GetHashCode();
			}
			if (this.Id != 0U)
			{
				num ^= this.Id.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x06001F32 RID: 7986 RVA: 0x00058995 File Offset: 0x00056B95
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x06001F33 RID: 7987 RVA: 0x0005899D File Offset: 0x00056B9D
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x06001F34 RID: 7988 RVA: 0x000589A8 File Offset: 0x00056BA8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			this.startDifficultyIdList_.WriteTo(ref output, ChessRogueStartCsReq._repeated_startDifficultyIdList_codec);
			if (this.Id != 0U)
			{
				output.WriteRawTag(16);
				output.WriteUInt32(this.Id);
			}
			this.trialAvatarIdList_.WriteTo(ref output, ChessRogueStartCsReq._repeated_trialAvatarIdList_codec);
			this.baseAvatarIdList_.WriteTo(ref output, ChessRogueStartCsReq._repeated_baseAvatarIdList_codec);
			if (this.BranchId != 0U)
			{
				output.WriteRawTag(104);
				output.WriteUInt32(this.BranchId);
			}
			if (this.AeonId != 0U)
			{
				output.WriteRawTag(112);
				output.WriteUInt32(this.AeonId);
			}
			this.disableAeonIdList_.WriteTo(ref output, ChessRogueStartCsReq._repeated_disableAeonIdList_codec);
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x06001F35 RID: 7989 RVA: 0x00058A64 File Offset: 0x00056C64
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			num += this.baseAvatarIdList_.CalculateSize(ChessRogueStartCsReq._repeated_baseAvatarIdList_codec);
			num += this.trialAvatarIdList_.CalculateSize(ChessRogueStartCsReq._repeated_trialAvatarIdList_codec);
			if (this.BranchId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.BranchId);
			}
			num += this.disableAeonIdList_.CalculateSize(ChessRogueStartCsReq._repeated_disableAeonIdList_codec);
			num += this.startDifficultyIdList_.CalculateSize(ChessRogueStartCsReq._repeated_startDifficultyIdList_codec);
			if (this.AeonId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.AeonId);
			}
			if (this.Id != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.Id);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x06001F36 RID: 7990 RVA: 0x00058B20 File Offset: 0x00056D20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ChessRogueStartCsReq other)
		{
			if (other == null)
			{
				return;
			}
			this.baseAvatarIdList_.Add(other.baseAvatarIdList_);
			this.trialAvatarIdList_.Add(other.trialAvatarIdList_);
			if (other.BranchId != 0U)
			{
				this.BranchId = other.BranchId;
			}
			this.disableAeonIdList_.Add(other.disableAeonIdList_);
			this.startDifficultyIdList_.Add(other.startDifficultyIdList_);
			if (other.AeonId != 0U)
			{
				this.AeonId = other.AeonId;
			}
			if (other.Id != 0U)
			{
				this.Id = other.Id;
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x06001F37 RID: 7991 RVA: 0x00058BC8 File Offset: 0x00056DC8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x06001F38 RID: 7992 RVA: 0x00058BD4 File Offset: 0x00056DD4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 66U)
				{
					if (num <= 10U)
					{
						if (num == 8U || num == 10U)
						{
							this.startDifficultyIdList_.AddEntriesFrom(ref input, ChessRogueStartCsReq._repeated_startDifficultyIdList_codec);
							continue;
						}
					}
					else
					{
						if (num == 16U)
						{
							this.Id = input.ReadUInt32();
							continue;
						}
						if (num == 64U || num == 66U)
						{
							this.trialAvatarIdList_.AddEntriesFrom(ref input, ChessRogueStartCsReq._repeated_trialAvatarIdList_codec);
							continue;
						}
					}
				}
				else if (num <= 104U)
				{
					if (num == 80U || num == 82U)
					{
						this.baseAvatarIdList_.AddEntriesFrom(ref input, ChessRogueStartCsReq._repeated_baseAvatarIdList_codec);
						continue;
					}
					if (num == 104U)
					{
						this.BranchId = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 112U)
					{
						this.AeonId = input.ReadUInt32();
						continue;
					}
					if (num == 120U || num == 122U)
					{
						this.disableAeonIdList_.AddEntriesFrom(ref input, ChessRogueStartCsReq._repeated_disableAeonIdList_codec);
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04000CC2 RID: 3266
		private static readonly MessageParser<ChessRogueStartCsReq> _parser = new MessageParser<ChessRogueStartCsReq>(() => new ChessRogueStartCsReq());

		// Token: 0x04000CC3 RID: 3267
		private UnknownFieldSet _unknownFields;

		// Token: 0x04000CC4 RID: 3268
		public const int BaseAvatarIdListFieldNumber = 10;

		// Token: 0x04000CC5 RID: 3269
		private static readonly FieldCodec<uint> _repeated_baseAvatarIdList_codec = FieldCodec.ForUInt32(82U);

		// Token: 0x04000CC6 RID: 3270
		private readonly RepeatedField<uint> baseAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04000CC7 RID: 3271
		public const int TrialAvatarIdListFieldNumber = 8;

		// Token: 0x04000CC8 RID: 3272
		private static readonly FieldCodec<uint> _repeated_trialAvatarIdList_codec = FieldCodec.ForUInt32(66U);

		// Token: 0x04000CC9 RID: 3273
		private readonly RepeatedField<uint> trialAvatarIdList_ = new RepeatedField<uint>();

		// Token: 0x04000CCA RID: 3274
		public const int BranchIdFieldNumber = 13;

		// Token: 0x04000CCB RID: 3275
		private uint branchId_;

		// Token: 0x04000CCC RID: 3276
		public const int DisableAeonIdListFieldNumber = 15;

		// Token: 0x04000CCD RID: 3277
		private static readonly FieldCodec<uint> _repeated_disableAeonIdList_codec = FieldCodec.ForUInt32(122U);

		// Token: 0x04000CCE RID: 3278
		private readonly RepeatedField<uint> disableAeonIdList_ = new RepeatedField<uint>();

		// Token: 0x04000CCF RID: 3279
		public const int StartDifficultyIdListFieldNumber = 1;

		// Token: 0x04000CD0 RID: 3280
		private static readonly FieldCodec<uint> _repeated_startDifficultyIdList_codec = FieldCodec.ForUInt32(10U);

		// Token: 0x04000CD1 RID: 3281
		private readonly RepeatedField<uint> startDifficultyIdList_ = new RepeatedField<uint>();

		// Token: 0x04000CD2 RID: 3282
		public const int AeonIdFieldNumber = 14;

		// Token: 0x04000CD3 RID: 3283
		private uint aeonId_;

		// Token: 0x04000CD4 RID: 3284
		public const int IdFieldNumber = 2;

		// Token: 0x04000CD5 RID: 3285
		private uint id_;
	}
}
